<div class="hp-tab-newprd">
    <ul class="j-sw-nav">
        <li class="newprd-s1 tab-li on"><a href="<?php echo base_path(); ?>village/list">查看</a></li>
        <?php if(user_access('add village')){?>
        <li class="newprd-s2 tab-li"><a href="<?php echo base_path(); ?>village/add">添加</a></li>
        <?php }?>
    </ul>
    <div class="newprd-s1">
        <div class="table-div">

            <div class="search-div">
                <div class="small-select small-input" style="clear: both">
                    <?php  print _address_render_for_list($form);  ?>
                </div>
                <div class="small-select max-big-input column" style="clear:both">
                    <div class="search-label">专项活动:</div><?php print render($form['special_activities']); ?>
                </div>
                <div class="small-select small-input" style="clear: both">
                    <div class="search-label">请选字段:</div><?php print render($form['field']); ?>
                </div>
                <div class="small-select small-input" style="clear:both">
                    <div style="float: left; width:200px">
                        <div class="search-label">范围:</div><?php print render($form['min_number']); ?></div>
                    <?php print render($form['max_number']); ?>
                </div>
                <div class="small-select small-input column" style="clear:both">
                    <div class="search-label">请选作物:</div><?php print render($form['plant']); ?>
                </div>
                <div class="small-select small-input column" style="clear:both">
                    <div class="search-label">请选年份:</div><?php print render($form['year']); ?>
                </div>
                <div class="search-submit"><?php print render($form['submit']); ?></div>
            </div>

<!--            <img class="res-search" src='--><?php //echo base_path();?><!--sites/all/themes/tweme/images/images/stats.png'>-->
            <div class="stats-div"><span>村落信息统计结果</span></div>
            <div class="table-div">
                <div class="farmer-field" style="margin-top: 0px">
                    <div class="farmer-field-div">
                        <span>总条目:</span>
                        <span><?php echo $form['#stat']['#count']; ?>条</span>
                    </div>
                    <div class="farmer-field-div">
                        <span>总耕地面积:</span>
                        <span><?php echo $form['#stat']['#sum_farm_area']; ?>亩</span>
                    </div>
                </div>
            </div>

            <img class="res-search" src='<?php echo base_path(); ?>sites/all/themes/tweme/images/images/res.png'>
            <div class="table-div">
                <?php print render($form['table']); ?>
            </div>
        </div>
    </div>
</div>

<?php print drupal_render_children($form); ?>